#!/usr/bin/python
# -*- coding:utf-8 -*-
# -------------------------------------------------------
# @author  : 龍皓
# @time    : 2025/2/21 23:12
# @function: the script is used to do something.
# @version : 1.0.0
# -------------------------------------------------------

import sys

from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QApplication
from ui.views.main_window import MainWindow
from core.util.logger import setup_logger

logger = setup_logger()


class App(QApplication):

    def __init__(self, argv):
        super().__init__(argv)
        logger.info("软件启动中......")
        # 在这里创建并显示主窗口
        self.main_window = MainWindow()
        self.main_window.show()
        logger.info("主窗口启动成功！")

if __name__ == "__main__":
    # 创建应用实例，并启动事件循环
    app = App(sys.argv)
    sys.exit(app.exec())